<?php
/**
 * Event interface
 *
 * 
 */

namespace OM\Events;

 interface EventInterface
 {
 	const EV_READ = 1;
 	const EV_WRITE = 2;
 	const EV_SIGNAL = 4;
 	const EV_TIMER = 8;
 	const EV_TIMER_ONCE = 16;
 	const EV_NOTIFY = 32;

 	public function  add( $fd, $flag, $func, $args = null);
 	public function  del( $fd, $flag );
 	public function  clearAllTimer();
 	public function  loop(); // Libevent to loop
 	public function  notify();
 }
